import request from "./request";
const Req = new request()

export function list(page = 0, limit = 10) {
    return Req.get({
        url: '/bannerList',
        data: {
            page,
            limit
        }
    })
}
export function add({title, url, sort, path, desciption, status}) {
    return Req.post({
        url: '/bannerAdd',
        data: {
            title, url, sort, path, desciption, status
        }
    })
}

export function del({_id}) {
    return Req.post({
        url: '/bannerDelete',
        data: {
            _id
        }
    })
}

